package state.example;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/12/3
 * @Modified By:
 */
public class Client {
    public static void main(String[] args) {
        Context context = new Context();
        context.setLiftState(new ClosingState());//定义电梯的初始状态
        context.open();
        context.close();
        context.run();
        context.stop();
    }
}
